package com.newlink.building.userinfo.mvp

import com.newlink.building.common_base.base.BasePresenter
import com.newlink.building.common_base.ext.ss
import com.newlink.building.userinfo.mvp.contract.Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract
import com.newlink.building.userinfo.mvp.model.Module_UserInfo_FamilyManagementDetailAddFailQRCodeModel

/**
 * @author wangyang
 * @date 2022/10/12
 * @description 我的——家庭管理——添加失败状态的详情页（二维码）页面的Presenter
 */
class Module_UserInfo_FamilyManagementDetailAddFailQRCodePresenter :
    BasePresenter<Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract.Model, Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract.View>(),
    Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract.Presenter {

    override fun createModel(): Module_UserInfo_FamilyManagementDetailAddFailQRCodeContract.Model? {
        return Module_UserInfo_FamilyManagementDetailAddFailQRCodeModel()
    }

    override fun getData(phone: String) {
        mModel?.getData(phone)?.ss(mModel, mView) {
            it?.data?.let { it1 -> mView?.showData(it1.list) }
        }
    }
}